package com.emergency.embackend.service;

import com.emergency.embackend.common.PageParams;
import com.emergency.embackend.entity.Article;
import com.emergency.embackend.param.ArticleDataParam;
import com.emergency.embackend.param.ArticleParam;
import com.emergency.embackend.vo.ArticleVO;
import com.github.pagehelper.PageInfo;
import org.springframework.data.domain.Page;

import java.util.List;

public interface WikiArticleService {
    PageInfo getArticleData(ArticleDataParam articleDataParam);

    void delete(Long articleId);

    void deleteByTypeId(Long typeId);

    ArticleVO getOne(Long articleId);

    void update(ArticleParam articleParam);

    void add(ArticleParam articleParam);

    PageInfo getArticlesByCreateTimeDesc(PageParams pageParams);

    List<ArticleVO> getHotArticle();

    List<ArticleVO> getRecommendArticle(ArticleDataParam articleDataParam);

    List<ArticleVO> getHistory(Long userId);

}
